package com.kefu.admin.modules.tgqmdj.mapper;

import com.kefu.admin.modules.tgqmdj.model.Menu;
import com.kefu.admin.modules.tgqmdj.model.TreeMenu;
import com.kefu.admin.modules.tgqmdj.model.TreeMenuList;
import com.kefu.admin.utils.MyMapper;
import java.util.List;

/**
 * Created by TWD on 2018/10/17.
 */
public interface MenuMapper extends MyMapper<Menu> {

    List<Menu> queryMenu(Integer status);
    
    List<TreeMenuList> selectMenu();
    
    Menu queryMenuIdByMenuName(String menuName);
    
    List<Menu> queryMenuName(Integer status);
    
    List<TreeMenu> queryTreeMenu();
    
    int insertMenu(Menu menu);
    
    Menu queryMenuById(Long menuId);
    
    int updataMenuById(Menu menu);
    
    int deleteMenuById(Long menuId);
}
